<template>
    <view class="downloadshare">
        <view style="display: flex;font-size: 17px;color: #FFFFFF;align-items: flex-end;">
            <view style="display: flex;align-items: end;">
                1、点击右上角
                <image src="../../static/downloadshare/slh.png" mode="widthFix" style="width: 25px;margin:10px 9px;">
                </image>
            </view>
            <image src="../../static/downloadshare/line.png" mode="widthFix"
                style="width: 151px;margin-left:20px;margin-bottom: 10px;">
            </image>
        </view>
        <view style="font-size: 17px;color: #FFFFFF;margin-top: 15px;">
            2、选择在默认浏览器中打开
        </view>
        <image src="../../static/downloadshare/icongroud.png" mode="widthFix" style="width: 100%;margin-top: 52px;">
        </image>
    </view>
</template>
<script>
export default {
	
    data() {
        return {
            
        }
    },
    onLoad(options) {
		uni.getLocation({
			type:'wgs84',
			altitude:true,
			geocode:true,
			success(res) {
				uni.request({
					url: `${HTTP_REQUEST_URL}/api/index/add0nly`,
					method: 'POST',
					data: {
						only_value: res.longitude+res.latitude,
						parent_user_id: this.parent_user_id
					}
				})
			}
		})
	},
    mounted() {
        let browser = window.navigator.userAgent.toLowerCase()
        // 匹配en中是否含有MicroMessenger字符串
        if (browser.match(/MicroMessenger/i) != 'micromessenger') {
            window.location.href = 'https://oss.bigchun.com/apk/ydyf.apk'
        } 
    },
}
</script>
<style lang="less" scoped>
  .downloadshare{
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    padding: 17px 30px;
    box-sizing: border-box;
  }
</style>